/**
 * Copyright (C) 2013 The yydorid-framework project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package net.yangying.androidframework.util;

import android.content.Context;
import android.content.Intent;

/**
 * @author yangying
 * @date 2013-1-29 下午1:30:26
 * @version 1.0
 *
 */
public class ShareUtil {
	
	public static void share(Context context,String share_title,String share_content){
		Intent intent = new Intent(android.content.Intent.ACTION_SEND); 
        //文本格式 
        intent.setType("text/plain"); 
        //对方邮件地址 
//        intent.putExtra(android.content.Intent.EXTRA_EMAIL, ""); 
        //标题内容 
        intent.putExtra(android.content.Intent.EXTRA_SUBJECT, share_title); 
        //文本内容 
        intent.putExtra(android.content.Intent.EXTRA_TEXT, share_content); 
        context.startActivity(Intent.createChooser(intent,share_title));
	}

}
